package com.zgc.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zgc.dao.IUserDao;
import com.zgc.domain.User;
import com.zgc.service.IUserService;
@Service
@Transactional
public class UserServiceImpl implements IUserService {
	@Resource
	private IUserDao userDao;
	
	public void regist(User user) {
		userDao.regist(user);
	}

	public User login(String username, String password) {
		User user = userDao.login(username,password);
		return user;
	}
	
}
